<template>
    <div class="bg-content content">
        <van-cell :title="item.text" is-link v-for="(item,index) in list" :key="index"    @click="getDetail(item,index)" />
    </div>
</template>
<script>
import Vue from "vue";
import { Cell } from "vant";
Vue.use(Cell);
export default {
    name:'index',
    data() {
        return {
            list:[
                 { text: "如何注册账号？", url: "" },
                { text: "如何找回账号密码？", url: "" },
                { text: "如何修改登录密码？", url: "" },
                {  text: "如何绑定手机号码？", url: "" }
            ]
        }
    },
    methods:{
         getDetail(val,index) {
      console.log(val);
      if(index == 0){
        this.$router.push({path:'/hf_problem'})
      }
    },
    }
}
</script>
<style lang="scss" scoped>
    .bg-content{
         background: #f6f6f6;
    }
</style>